package dao;

import org.apache.ibatis.annotations.Param;
import pojo.Student;

import java.util.List;

public interface StudentDao {
    List<Student> findAll(@Param("student_name") String student_name,@Param("student_num") String student_num,@Param("offset")int offset,@Param("pageSize")int pageSize);
    List<Student> findAll2(@Param("student") Student student, @Param("offset")int offset, @Param("pageSize")int pageSize);
    int deleteStudentById(Student student);

    int addStudent(Student student);

    Student findStudentById(int s_id);

    int updateStudent(Student student);

    int count(Student student);
}
